package com.chcit.mobile.mvp.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chcit.mobile.R;
import com.chcit.mobile.mvp.model.entity.StorageBean;

import java.util.List;

public class InventoryAdapter extends BaseQuickAdapter<StorageBean,BaseViewHolder> {

    public InventoryAdapter(@Nullable List<StorageBean> data) {
        super(R.layout.item_inventory_data,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, StorageBean item) {
        helper.setText(R.id.tv_inventory_pname,item.getProductName());
        helper.setText(R.id.tv_inventory_Lot,item.getLot());
        helper.setText(R.id.tv_inventory_Manufacturer,item.getManufacturer());
        helper.setText(R.id.tv_inventory_GuaranteeDate,item.getGuaranteeDate());
        helper.setText(R.id.tv_inventory_StorageStatusName,item.getStorageStatusName());
        helper.setText(R.id.tv_inventory_QtyOnHand,item.getQtyOnHand()+"");
        helper.setText(R.id.tv_inventory_productSpec,item.getProductSpec());
        helper.setText(R.id.tv_inventory_locator,item.getLocatorName());
        helper.setText(R.id.tv_inventory_VendorName,item.getOrgName());
    }
}
